package com.koron.configure.feign.operation;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.configure.feign.operation.dto.ChangeShiftDTO;
import com.koron.configure.feign.operation.query.ShiftRecordQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author jzp
 * @since 2022/12/9
 */
@FeignClient(value = "eam-service-operation", fallbackFactory = FeignFallbackFactory.class)
public interface ShiftFeign {

    @GetMapping("/shift/info")
    Response<ChangeShiftDTO> info(@SpringQueryMap ShiftRecordQuery shiftQuery);
}
